import type { PaginationProps } from "antd/es/pagination"

export const LOGIN_PAGES = [
  '/login', // 登录页
  '/vipLogin', // 大客登录页
  '/agreement', // 协议
]

/** 通用基础分页配置 */
export const PAGINATION_CONFIG: PaginationProps = {
  size: 'small',
  showQuickJumper: true,
  showSizeChanger: true,
  showTotal: total => `共${total}条`,
  pageSizeOptions: [10, 20, 50, 100],
}

/** 腾讯地图 APP_KEY */
export const TENCENT_KEY = 'VVXBZ-WQJEH-JSMDK-WMBKG-73DEQ-YNF2G'

export const SUCCESS_CODE = '200'

export const REG_EXP = {
  PHONE: /^1\d{10}$/,
  NUMBER: /^[0-9]*$/,
}
